package work;

public class Student {
    int stuNo,age;
    String name;

    public Student() {
    }

    public Student(int stuNo, int age, String name) {
        this.stuNo = stuNo;
        this.age = age;
        this.name = name;
    }
    public void output(){
        System.out.println("该学生的学号是："+this.stuNo);
        System.out.println("该学生的年龄是："+this.age);
        System.out.println("该学生的姓名是："+this.name);
    }


    public static void main(String[] args) {
        Student stu=new Student();
        stu.output();
    }
}
